<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($plugin_name){
	$return['footernav']=$this->plugin($plugin_name)->plugin_setting('basic')['footernav'];
}
$return['pluginset']=$this->plugin_setting('basic');
if($_RQ['merchid']){
	$_SESSION['onemerchid']=$_RQ['merchid'];
}
if($_SESSION['onemerchid']){
	$get_groupset=model('jy_merch/model')->get_groupset($_SESSION['onemerchid']);
	$return['pluginset']['bankuai1']=$get_groupset['bankuai']?:$return['pluginset']['bankuai1'];
	$return['pluginset']['footernav']=$get_groupset['menus']?:$return['pluginset']['footernav'];
}
$_SESSION['merchfooternav']=$return['pluginset']['footernav'];
$sharelink='jy_lianmerch/index//fromuser='.$_SESSION['uid'];
$return['sharedata']=array(
	'title'=>$setting['share_title']?$setting['share_title']:'新概念零售',
	'desc'=>$setting['share_desc']?$setting['share_desc']:'新概念零售，体验不一样的商城体验！',
	'link'=>custom_url($sharelink,true),
	'imgUrl'=>tomedia($setting['share_image'])
);
?>